package com.dianxin.farm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
* <p>
    * 用户基础信息表
    * </p>
*
* @author xukai
* @since 2020-11-30
*/
    @Data
        @EqualsAndHashCode(callSuper = false)
    @Accessors(chain = true)
    @ApiModel(value="CustomerInfo对象", description="用户基础信息表")
    public class CustomerInfo implements Serializable {

    private static final long serialVersionUID = 1L;

            @TableId(value = "customer_id", type = IdType.AUTO)
    private Integer customerId;

            @ApiModelProperty(value = "姓名")
    private String userName;

    private String phone;

            @ApiModelProperty(value = "微信账号")
    private Integer weNum;

    private String idCard;

            @ApiModelProperty(value = "是否签约1 签约 0 未签约 2已签约重新签约")
    private Integer auth;

    private LocalDateTime authTime;

    private LocalDateTime createTime;

            @ApiModelProperty(value = "微信id")
    private String openId;

            @ApiModelProperty(value = "小程序服务端同前端通信标志")
    private String token;

    private Integer enterpriseId;

            @ApiModelProperty(value = "二维码内容")
    private String qrContent;

    private Integer age;

            @ApiModelProperty(value = "性别 0未知 1男2女")
    private Integer gender;

            @ApiModelProperty(value = "头像")
    private String headImage;

    private String idcardUpImg;

    private String idcardDownImg;

            @ApiModelProperty(value = "用户角色0  普通用户 1一级分销 100超管")
    private Integer role;

            @ApiModelProperty(value = "上级分销人id，超管的此id为空")
    private Integer parentId;

            private String inviteCode;

            private String nickName;


}
